using System;

namespace Qplus.protocol
{


    /**
     * 接收消息通知
     *
     */
    public class U2C_NOTIFY_CHAT_RECVMSG : InPacket{

	    private long appID;
	
	    private long sessionID;
	
	    private int type;
	
	    private long date;
	
	    private byte[] text;
	
	    protected override void parseBody(byte[] data, int offset, int count) {
		    appID = get4(data);
		    sessionID = get4(data);
		    type = get1(data);
		    date = get4(data);
		    int len = get2(data);
		    text = getN(data, len);
	    }

	    public long getAppID() {
		    return appID;
	    }

	    public void setAppID(long appID) {
		    this.appID = appID;
	    }

	    public long getSessionID() {
		    return sessionID;
	    }

	    public void setSessionID(long sessionID) {
		    this.sessionID = sessionID;
	    }

	    public int getType() {
		    return type;
	    }

	    public void setType(int type) {
		    this.type = type;
	    }

	    public byte[] getText() {
		    return text;
	    }

	    public void setText(byte[] text) {
		    this.text = text;
	    }

	    public long getDate() {
		    return date;
	    }

	    public void setDate(long date) {
		    this.date = date;
	    }
	
    //	kal_uint32 appID; 应用ID
    //	kal_uint8 sessionID; 会话ID
    //	kal_uint8 msgType; 消息类型 E_MESSAGE_TYPE
    //	kal_uint32 dateTime; 日期时间
    //	kal_uint16 textLen; 文本长度
    //	kal_uint8 text[]; 文本

	  
    }
}
